package com.dao;

import com.po.User;

/**
 * @Author Doris.Lee
 * @Description [JavaBean]用户的业务逻辑类
 * @Locate com.dao.UserDao
 * @Datetime 2020-05-20 07:04
 * @Version 1.0
 */
public class UserDao {

    //用户登录方法
    public boolean userLogin(User u)
    {
        if("admin".equals(u.getUsername())&&"admin".equals(u.getPassword()))
        {
            return true;
        }
        else
        {
            return false;
        }
    }
}
